package com.demo.webflux.spring5core.framework.beans.config;

/**原生spring的BeanPostProcessor是为对象初始化事件设置的一种回调机制
 * @author zhangsulei
 *
 */
public class BeanPostProcessor {

	/**为在bean的初始化之前提供回调入口
	 * @param bean
	 * @param beanName
	 * @return
	 * @throws Exception
	 */
	public Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {
		return  bean;
	}

	/**在bean的初始化之后提供回调入口
	 * @param bean
	 * @param beanName
	 * @return
	 * @throws Exception
	 */
	public Object postProcessAfterInitialization(Object bean, String beanName) throws Exception {
		return  bean;
	}

}
